//- Copyright (c) 2016 Lucky Byte, Inc.
table.ui.celled.table.very.basic.structured.compact
  tbody
    tr
      td.right.aligned.collapsing 序 号
      td.collapsing.positive= record.serial
      td.right.aligned.collapsing 创建时间
      td.collapsing.positive(colspan="1")= record.ctime.format('YYYY-MM-DD HH:mm:ss')
      td.right.aligned.collapsing UUID
      td.positive(colspan="7")= record.uuid
    tr
      td.right.aligned.collapsing 取款商户/终端
      td.collapsing.positive(colspan="5")= record.t60_merno
        |  ｜ #{record.t60_mername} ／ #{record.t60_termid}
      td.right.aligned.collapsing 代付商户/终端
      td.collapsing.positive(colspan="5")= record.tz1_merno
        |  ｜ #{record.tz1_mername} ／ #{record.tz1_termid}
    tr
      td.right.aligned.collapsing 代付手续费
      td.collapsing.positive(colspan="5")= record.t60_fee_name
        |  ｜ #{record.t60_fee_notes}
      td.right.aligned.collapsing 手续费收取方式
      td.positive(colspan="5")
        case record.fee_take_type
          when 1
            | 从代理商资金池中扣取
          when 2
            | 从代付金额中扣取
          default
            | 未 知
    tr
      td.right.aligned.collapsing 代理商资金池
      td.collapsing.positive(colspan="5")= record.p2_fund_name
        |  ｜ #{record.p2_fund_agent}
      td.right.aligned.collapsing 余额不足时处理方式
      td.positive(colspan="5")
        case record.fund_lack_proc
          when 1
            | 不允许助农取款交易和代付交易
          when 2
            | 允许助农取款交易，但不允许代付交易
          when 3
            | 透支资金池，透支额度不超过配置值
          when 4
            | 转从代付金额中扣取手续费
          default
            | 未 知
    tr
      td.right.aligned.collapsing 代付渠道
      td.collapsing.positive(colspan="3")= constant.pay_chnls[record.pay_chnl]
      td.right.aligned.collapsing 代付渠道商户
      td.positive(colspan="7")= record.pay_merno
        |  ｜ #{record.pay_mername}
    tr
      td.right.aligned.collapsing 收款账号
      td.collapsing.positive(colspan="3")= record.acct_no
      td.right.aligned.collapsing 收款人姓名
      td.collapsing.positive(colspan="1")= record.acct_name
      td.right.aligned.collapsing 证件类型
      td.collapsing.positive(colspan="1")
        = constant.cred_types[record.acct_cred_type]
      td.right.aligned.collapsing 证件号码
      td.positive(colspan="3")= record.acct_cred_no
    tr
      td.right.aligned.collapsing 开户行代码
      td.collapsing.positive(colspan="3")= record.acct_bank_code
      td.right.aligned.collapsing 开户行名称
      td.collapsing.positive(colspan="3")= record.acct_bank_name
      td.right.aligned.collapsing 绑定手机
      td.collapsing.positive(colspan="3")= record.acct_mobile

    tr
      td.right.aligned.collapsing 备 注
      td.positive(colspan="11")= record.notes

    tr
      td.collapsing.right.aligned 最后修改人
      td.collapsing.positive(colspan="2")= record.input_user
      td.right.aligned.collapsing 最后修改时间
      td.collapsing.positive(
        colspan="1")= record.input_time.format('YYYY-MM-DD HH:mm:ss')
      td.right.aligned.collapsing 状 态

      if record.checked
        td.left.aligned.collapsing.positive 复核通过
        td.right.aligned.collapsing 复核人
        td.collapsing.positive(colspan="1")= record.check_user
        td.right.aligned.collapsing 复核时间
        td.positive(
          colspan="2")= record.check_time.format('YYYY-MM-DD HH:mm:ss')
      else
        td.left.aligned.collapsing.positive(colspan="6") 等待复核
